package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Employee;
import cn.wolfcode.crm.qo.QueryObject;
import com.github.pagehelper.PageInfo;
import org.apache.poi.ss.usermodel.Workbook;

import java.io.IOException;
import java.io.InputStream;
import java.util.List;

public interface EmployeeService {

    void insert(Employee record, Long[] roleIds);

    void deleteByPrimaryKey(Long id);

    void  updateByPrimaryKey(Employee employee,Long[] roleIds);

    Employee selectByPrimaryKey(Long id);

    List<Employee> selectAll();

    PageInfo<Employee> query(QueryObject qo);


    void batchDelete(Long[] ids);

    Employee queryByUsername(String username);

    Workbook exportXls();

    void importXls(InputStream inputStream) throws IOException;

    List<Employee> queryByRoleSn(String[] roleSns);
}
